﻿using CPPEI.Coolzon.Common;
using CPPEI.Coolzon.Event.NCL;
using CPPEI.Coolzon.Service.Contract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.UI.Views.EventProxies
{
    public class RespGetDomainInstanceModeHandler : BaseResponseHandler<RespGetDomainInstanceModeData>
    {
        protected override void OnHandle(RemoteEventProxy remoteEventProxy, ServiceProxy.MainServiceRef.Response response, RespGetDomainInstanceModeData responseData)
        {
            NCLGetDomainInstanceModeEvent @event = new NCLGetDomainInstanceModeEvent();
            @event.State = NCLEventState.Finished;
            @event.DomainInstanceMode = responseData.DomainInstanceMode;
            EventBus.Instance.Publish(@event);
        }
    }
}
